package com.AJava1710D.bingfabao.testThreadLocal;

/**
 * 作者: LCG
 * 日期: 2020/6/24 10:41
 * 描述:
 */
public class ThreadLocalUtils111 {

    private ThreadLocal<YYYY> threadLocal=new ThreadLocal<>();


    public YYYY getYYYY(){

        if(threadLocal.get()!=null){
           return threadLocal.get();
        }else {

            YYYY yyyy=new YYYY("88888");
            threadLocal.set(yyyy);

            return threadLocal.get();
        }

    }

}
